import http from '@/request'

// 获取列表
export let menulist = (params: object | undefined) => http.get('/menulist', params)
// 添加商品
export let menuadd = (data: object | undefined) => http.post('/menuadd', data)
// 删除商品
export let menudelete = (data: object | undefined) => http.post('/menudelete', data)
// 获取一条数据
export let menuinfo = (data: object | undefined) => http.get('/menuinfo', data)
// 修改一条数据
export let menuedit = (data: object | undefined) => http.post('/menuedit', data)


// 0---------------------setpeople-----------------------0//

// 添加角色
export let roleadd = (data: object | undefined) => http.post('/roleadd', data)
// 角色列表
export let rolelist = (params: object | undefined) => http.get('/rolelist', params)
// 获取一条角色信息
export let roleinfo = (params: object | undefined) => http.get('/roleinfo', params)
// 角色修改
export let roleedit = (data: object | undefined) => http.post('/roleedit', data)
// 角色删除
export let roledelete = (data: object | undefined) => http.post('/roledelete', data)